home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / modems / mod_a2l / ig216 / ig216.zip / MODEMS / MOD_A2L / IG216 / N_UTIL1.LST < prev    next >
Encoding:
File List  |  1991-10-22  |  1.0 KB  |  31 lines

  1. '
  2. ' **** Convert ASCII values to a string for the N command chip music.
  3. ' **** These values corespond to the "n" command.
  4. '
  5. Close #7
  6. Open "O",#7,"a:\N4.IGC" !<<<---change file path to suit.
  7. ' *** IG's N command Load and execute is N>4,number_of_data_elements,string
  8. G$="G#N>4,24," !<<---Remember to adjust me, MAX will be 9996.
  9. Print #7,G$;
  10. '
  11. ' *** This for loop is looped to the number of Data elements(same as in
  12. ' *** the N statement above) it's
  13. ' *** 6 for each call to the play_note function in the IG terminal
  14. ' *** play_note(effect_num,voice,volume,pitch,timing,note_off_type);
  15. '
  16. For I=1 To 24 ! <<---remember to adjust me, MAX is 9996.
  17.   Read A%
  18.   Print #7,Chr$(A%);
  19. Next I
  20. Print #7
  21. Close #7
  22. '
  23. ' **** These data statements correspond to the values in the "n" command
  24. ' **** imagine the word Data is actually the "n"
  25. ' **** The example data statements play a 3 note chord for 2 seconds.
  26. ' **** when the resulting  N4.IGC script is read by the IG terminal.
  27. Data 12,0,15,65,0,0
  28. Data 12,1,15,67,0,0
  29. Data 12,2,15,69,200,0
  30. Data 0,0,0,0,200,3
  31.